package org.example.test.domain.pojo;

import com.gitee.feizns.quickstart.code.generator.CodeGenerator;
import com.gitee.feizns.quickstart.code.generator.Methods;
import com.gitee.feizns.quickstart.ddl.annotation.Comment;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author feizns
 * @since 2024/12/6
 */
@Data
@Comment("测试")
@Table("hello")
public class Hello {

    /**
     * 编号
     */
    @Comment("编号")
    private Long id;

    /**
     * 姓名
     */
    @Comment("编号")
    private String name;

    /**
     * 创建时间
     */
    @Comment("创建时间")
    private LocalDateTime createTime;

    public static void main(String[] args) {
        CodeGenerator.of("/api/v1", Hello.class)
                .register(Methods.crudById())
                .generateWithMybatisFlexTemplate().all();
    }

}
